interface Text {
  previewUrl: boolean;
  body: string;
  trans: string;
}
interface ExtData {
  isAiHandled: boolean;
  isStarred: boolean;
  lastConverseTime: number;
  unreadMsgCount: number;
}

interface CustomerInfo {
  id: number;
  createdAt?: number;
  updatedAt?: number;
  nickname?: string;
  phone_number?: string;
  extData?: ExtData;
}
interface ImageObj {
  caption?: string;
  id?: string;
  link: string[];
}
interface ContJson {
  text: Text;
  image: ImageObj;
}

export interface MsgInfo {
  id: number;
  contType?: number;
  metaMsgId: string;
  readedAt: number;
  status: number;
  sender: number;
  createdAt: string;
  contJson: ContJson;
  updatedAt: string;
}

interface Data {
  userId: number;
  agentId: number;
  customerInfo: CustomerInfo;
  msgInfo: MsgInfo[];
}
interface ConversationType {
  type: string;
  action: string;
  data: Data | string;
  code: number;
  msg: string;
}

/**
 *  @description: ConversationType
 */

export type ConversationResp = ConversationType;
